package temp.lho.lws.service;


import temp.lho.lws.pojo.DispatchedWorkerInfo;
import temp.lho.lws.pojo.Policyinof;
import temp.lho.lws.vo.LayuiResult;

import java.util.List;

/**
 * (DispatchedWorkerInfo)表服务接口
 *
 * @author makejava
 * @since 2020-07-06 23:15:37
 */
public interface IDispatchedWorkerInfoService {

    /**
     * 通过ID查询单条数据
     *
     * @param dispatchedworkerid 主键
     * @return 实例对象
     */
    DispatchedWorkerInfo queryById(Integer dispatchedworkerid);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    List<DispatchedWorkerInfo> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param dispatchedWorkerInfo 实例对象
     * @return 实例对象
     */
    DispatchedWorkerInfo insert(DispatchedWorkerInfo dispatchedWorkerInfo);

    /**
     * 修改数据
     *
     * @param dispatchedWorkerInfo 实例对象
     * @return 实例对象
     */
    DispatchedWorkerInfo update(DispatchedWorkerInfo dispatchedWorkerInfo);

    /**
     * 通过主键删除数据
     *
     * @param dispatchedworkerid 主键
     * @return 是否成功
     */
    boolean deleteById(Integer dispatchedworkerid);

    DispatchedWorkerInfo sqlpolicy(Integer id);

    LayuiResult sqlpolicys(Policyinof policyinof);
}